﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using HsTec.Mobile.Green.SqlServerDAL;
using System.Data.SqlClient;

public partial class News_NewDetail : System.Web.UI.Page
{
    News MyNews = new News();

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            SqlDataReader MyDR = MyNews.ReadNews(" a.ID = " + Request.QueryString["ID"].ToString().Trim());

            if (MyDR.Read())
            {
                Title.Text = MyDR["Title"].ToString().Trim();
                DT.Text = MyDR["addtime"].ToString().Trim();

                lContent.Text = MyDR["Content"].ToString().Trim();

            }
        }
        catch
        {
        }
    }
}
